package com.alumni_circle.core.service.rbac.impl;

import com.alumni_circle.core.entity.rbac.UserRole;
import com.alumni_circle.core.entity.rbac.VO.UserRoleViewVO;
import com.alumni_circle.core.mapper.rbac.UserRoleMapper;
import com.alumni_circle.core.service.Impl.BaseServiceImpl;
import com.alumni_circle.core.service.rbac.IUserRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-08-02 20:28
 */
@Service
public class UserRoleServiceImpl extends BaseServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

    @Resource
    UserRoleMapper userRoleMapper;

    @Override
    public List<UserRoleViewVO> getAllUserRole() {
        return userRoleMapper.getAllUserRole();
    }

    @Override
    public List<UserRoleViewVO> searchUserRole(String id, String username, String updateName, String state, String roleName, String updateTime) {
        return userRoleMapper.searchUserRole(id, username, updateName, state, roleName, updateTime);
    }

}
